import React from 'react';
import { Modal } from 'antd';
import Player from '@dayu-meterial/player';
import styles from './VideoPlayerModal.less';

const VideoPlayerModal = ({ url, ...modalProps }) => {
  return (
    <Modal
      title="视频预览"
      width="848px"
      centered
      destroyOnClose
      className={styles.root}
      {...modalProps}
    >
      <Player
        type="aliplayer"
        videoParam={{
          width: "800px",
          height: "500px",
          source: url,
        }}
      />
    </Modal>
  );
}

export default VideoPlayerModal;
